<template>
  <div>
    <li v-for="item in backendList" :key="item.id">
      <!-- 拼接带参数的路径 -->
      <router-link :to="`/detail/${item.id}`">{{item.title}}</router-link>
    </li>
  </div>
</template>

<script>
export default {
  data () {
    return {
      backendList: [
        {
          id: 11,
          title: 'php'
        },
        {
          id: 222,
          title: 'java'
        },
        {
          id: 33,
          title: 'c#'
        }
      ]
    }
  }
}
</script>

<style>

</style>
